package com.itcast.service;

import com.alibaba.dubbo.config.annotation.Service;

import com.itcast.dao.SetmealMobileMapper;

import com.itcast.health.pojo.Setmeal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Gao
 * @version v1.0
 * @date 2019/11/23 20:27
 * @description 前台客户套餐服务
 **/
@Service(interfaceClass =SetmealMobileService.class)
@Transactional
public class SetmealMobileServiceImpl implements SetmealMobileService {
    @Autowired
    private SetmealMobileMapper mobilSetmealMapper;
    /**
     * 查询所有套餐数据
     *
     * @return
     */
    @Override
    public List<Setmeal> findAll() {
        return mobilSetmealMapper.findAll();
    }

    /**
     * 根据id查询套餐数据 包括检查组的数据
     *
     * @param id
     * @return
     */
    @Override
    public Setmeal findById(Integer id) {
        return mobilSetmealMapper.findById(id);
    }
}